package cn.itcast.user.impl;

import cn.itcast.user.UserService;
import org.apache.dubbo.config.annotation.Service;

@Service(version = "2.0") // 指定服务提供者的版本号
public class UserServiceImpl implements UserService {

    public String hello(String name) {
        System.out.println("====UserServiceImpl====" + name);
//        try {
//            Thread.sleep(2000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        return "Hello, " + name;
    }
}